<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>
<style type="text/css">
.letra {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 09px;
    text-align: justify;
}
.tablinea {
    border-collapse:collapse;
    margin: -1px; padding: -1px;
}
.miestilo {
background-color:#968970;
border:black;
}


</style>

<body>
<table width="100%" border="0" class="letra">
      <tr>
        <td colspan="2"><div align="center"><strong>INSTITUTO TECNOLOGICO SUPERIOR SUDAMERICANO</strong></div></td>
      </tr>
      <tr>
        <td colspan="2"><div align="center"><strong>MATERIAS APROBADAS DE PRIMERO A SEXTO CICLO</strong></div></td>
      </tr>

      <tr>
        <td width="50%"><strong>APELLIDOS Y NOMBRES :</strong> <?php echo $expediente[0]['nombres'] ?></td>
        <td width="50%"><strong>CARRERA :</strong> <?php echo $expediente[0]['carrera'] ?> </td>
      </tr>
      <tr>
        <td width="50%"><strong>ULTIMO SEMESTRE :</strong> <?php echo $nom_per ?></td>
        <td width="50%"><strong>NIVEL :</strong> <?php echo $nivel ?> <strong> SECCION:</strong> <?php echo $seccion ?><strong> PARALELO:</strong> <?php echo $paralelo ?></td>
      </tr>

      <tr>
        <td> </td>
        
        <td>FECHA: <?php
                        $dias = array("Domingo", "Lunes", "Martes", "Miercoles", "Jueves", "Viernes", "Sábado");
                        $meses = array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");

                        echo $dias[date('w')] . ", " . date('d') . " de " . $meses[date('n') - 1] . " del " . date('Y');
                        ?>
            </td>
      </tr>
  </tr>
</table>
             

<table width="100%" border="1" class="letra tablinea" cellpadding="0" cellspacing="1"  bordercolor="#000000">
  <tr>
    <td ><div align="center" ><strong>No</strong></div></td>
    <td ><div align="center" ><strong>NIVEL</strong></div></td>
    <td ><div align="center"><strong>MATERIAS</strong></div></td>
    <td ><div align="center"><strong>BIM1</strong></div></td>
    <td ><div align="center"><strong>BIM2</strong></div></td>
    <td ><div align="center"><strong>REMD</strong></div></td>
    <td ><div align="center"><strong>SUMA TOTAL</strong></div></td>
    <td ><div align="center"><strong>SUMA LETRAS</strong></div></td>
    <td ><div align="center"><strong>CREDITOS</strong></div></td>
    <td ><div align="center"><strong>ASIST 1B</strong></div></td>
    <td ><div align="center"><strong>ASIST 2B</strong></div></td>
    <td ><div align="center"><strong>TOTAL ASIST</strong></div></td>
    <td ><div align="center"><strong>COND NOTAS</strong></div></td>
    <td ><div align="center"><strong>COND ASISTE</strong></div></td>
    <td ><div align="center"><strong>DOCENTE</strong></div></td>
  </tr>
  <?php
    foreach ($expediente as $key => $row) {
      $css=($row['color']==1?'class="miestilo" ':' ');
      
   ?>
  <tr >
    <td <?php echo $css ?>><div align="center"><?php echo ($key+1);?></div></td>
    <td <?php echo $css ?>><div align="center"><?php echo ($row['codigo_cic']);?></div></td>
    <td <?php echo $css ?>><?php echo ($row['nombre_mat']);?></td>
    <td <?php echo $css ?>><div align="center"><?php echo ($row['total1']);?></div></td>
    <td <?php echo $css ?>><div align="center"><?php echo ($row['total2']);?></div></td>
    <td <?php echo $css ?>><div align="center"><?php echo ($row['suple_cal']>0?$row['suple_cal']:'-');?></div></td>
    <td <?php echo $css ?>><div align="center"><?php echo ($row['nota']);?></div></td>
    <td <?php echo $css ?>><div align="center"><?php echo ($row['letra_n']);?></div></td>
    <td <?php echo $css ?>><div align="center"><?php echo ($row['creditos_mat']);?></div></td>
    <td <?php echo $css ?>><div align="center"><?php echo ($row['asiste1_cal']);?></div></td>
    <td <?php echo $css ?>><div align="center"><?php echo ($row['asiste2_cal']);?></div></td>
    <td <?php echo $css ?>><div align="center"><?php echo ($row['asiste']);?></div></td>
    <td <?php echo $css ?>><div align="center"><?php echo ($row['cond_notas']);?></div></td>
    <td <?php echo $css ?>><div align="center"><?php echo ($row['cond_asiste']);?></div></td>
    <td <?php echo $css ?>><div align="center"><?php echo ($row['docente']);?></div></td>
  </tr>
  <?php } ?>

 </table>


<table width="100%" border="0">
  <tr>
    <td><div align="center">_____________________</div></td>
  </tr>
  <tr>
    <td><div align="center"><strong>La Secretaria</strong></div></td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>
